import { FC, ReactElement } from "react";
import notFound from "../../assets/images/404.png";
import "./index.scss";

interface INotFoundProps{
  history:any;
}

const NotFound:FC<INotFoundProps> = ({
  history
}):ReactElement => {

  const path2Home=() => {
    history.push("/home")
  }

  return (
    <div className="not-found">
      <img onClick={path2Home} src={notFound}/>
    </div>
  )
}

export default NotFound;